Skip to main content

All Questions

1vote
2answers
124views

How can I produce a delta plot between two RGB image with the same pixel size? [closed]

I have two RGB images of representing plot of a scalar variable on some geometry. My goal is to find a way to plot the difference of that variable btween the two images and color it with a custom ...
alie89's user avatar
-1votes
1answer
83views

How to correctly extract white pixels from binary images and display them correctly on the plotlib?

This is a binary image, I want to calculate the distance between two edges of the pixel, then display it on a drawing board. I handle it when it does not have branches, but when it has branches like ...
Abukeram's user avatar
0votes
0answers
44views

Does the Intensity of color in OpenCV image matter?

Here is a simple code which puts a text value onto a black frame and displays it: frame = np.zeros((50,200,3)) org=(0,45) font=cv2.FONT_HERSHEY_SIMPLEX fontScale=1 fontColor=(1,0,0) ##rgb out_img =...
Allohvk's user avatar
  • 1,393
0votes
1answer
105views

Rotate 2D numpy array about a specific line

I am trying to rotate an image about a specific line drawn within the image. Think of the image of a random 2D numpy array. I have two specific points in the array through which I would like to plot a ...
quics-ilver's user avatar
0votes
1answer
98views

Why is 'plt.imshow' showing the original image when the actual values are changed?

What is the problem of this piece of code? It modifies the values but when it wants to show me the actual modified image, it will show me the original image again. Am I doing something wrong? And let ...
Mahmood's user avatar
1vote
0answers
88views

Why does the output of PIL look different to matplotlib

I am doing some image processing in Python. I was originally using PIL to display my image but the output didn't look right to me so I used matplotlib instead and that seems to result in the output I ...
hasin's user avatar
0votes
2answers
137views

Removing MSB bit of a image [closed]

can I remove MSB bit of a image without using open cv or matlab in python img = Image.open(image) arrayimg = asarray(img) i have already read the image nd it is converted to array too, now i want to ...
Anirudh R's user avatar
0votes
0answers
62views

Processing material on images to a separate graph in python

I'm processing a file of images that are in encoded in RGB and contain material. The material is any non-background pixel with the background being purple or RGB(37, 150, 190) At the moment I have 2 ...
umba's user avatar
0votes
0answers
67views

Not able to see black and white image after threshold application

I am working on a project for detecting lines using threshold values in HLS image format. I wrote the following code for it. It is not giving any errors but the output I am getting is just a black ...
programmer_04_03's user avatar
0votes
1answer
69views

why am I getting a ValueError: could not broadcast input array from shape (3,) into shape (4,)

I'm trying to find all red pixels in a png file and output a binary image file, and I feel like I'm close. I have to use double for loops as it's a requirement for my assignment. this is is what I ...
user20749187's user avatar
1vote
1answer
4kviews

Creating an image mask using polygon points coordinates

I have a grayscale image with size (1920,1080) that I''m trying to create a mask for. I used an external software to manually get the points of interest (polygon). There are now 27 coordinates points ...
FNM's user avatar
  • 17
0votes
0answers
41views

Wrong shape when converting RGB array into image by plt.imshow()

I was trying to make a filter in python to achieve oil painting effect. It seems that the filter works perfectly, but something went wrong when I was trying to convert RGB array into image. code: from ...
marycheung's user avatar
-1votes
2answers
983views

How to scale numpy array (image) values to a certain range quickly, without changing the image in any way?

I have a numpy array H_arr representing the following image: (IMG 1) and I wish to convert its values in the range [0,1], let's call this new array as New_arr, in such a way that the original image ...
Key76's user avatar
0votes
1answer
1kviews

Can the output of plt.imshow() be converted to a numpy array?

My intention is to use matplotlib to convert a coloured image into a grayscale image and use colormap to display it in the Viridis scale. The code for that is as follows: import numpy as np import ...
Key76's user avatar
0votes
0answers
82views

How to grayscale a photo using the aggregate mean of the array?

I have been tasked with applying the mean aggregation function to find the average of values across different channels in my photo and putting the result in new array. What ends up happening is that I ...
SurfNTurf419's user avatar

153050per page
close